const express = require("express");
const router = express.Router();

const sensorHandler = require("../../router_handler/sensor/index");

//增加
router.post("/create", sensorHandler.create);
//删除
router.get("/delete", sensorHandler.deleteBySensorId);
//修改，更新
router.post("/update", sensorHandler.updateBySensorId);
//获取
router.get("/item", sensorHandler.getBySensorId);
router.get("/all", sensorHandler.getAll);

module.exports = router;
